package com.igeekhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.igeekhome.anno.Id;
import com.igeekhome.anno.Name;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Romeo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)

public class DNetwork {
    @Id
    private Integer networkId;
    @Name
    private String networkName;

    private Integer parentNetworkId;

    private String financeCenter;

    private String addressId;

    private String principalName;

    private String phone;

    private String telphone;

    private String remark;

    private String financeCenterSign;

    private String distributionCenterSign;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8 ")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8 ")
    private Date updateTime;

    private Integer status;

    private Integer type;
    
    @Override
    public String toString() {
        return "DNetwork{" +
                "networkId=" + networkId +
                ", networkName='" + networkName + '\'' +
                ", parentNetworkId=" + parentNetworkId +
                ", financeCenter='" + financeCenter + '\'' +
                ", addressId='" + addressId + '\'' +
                ", principalName='" + principalName + '\'' +
                ", phone='" + phone + '\'' +
                ", telphone='" + telphone + '\'' +
                ", remark='" + remark + '\'' +
                ", financeCenterSign='" + financeCenterSign + '\'' +
                ", distributionCenterSign='" + distributionCenterSign + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", type=" + type +
                '}';
    }
}